import http from "@/utils/request"

export default {
	itemList: {
		method: `sys.sysDict.item`,
		name: "获取字典项",
		get: async function (data = {}) {
			return await http.post(this.method, data);
		}
	},

	index: {
		method: `sys.sysDict.index`,
		name: "字典列表",
		get: async function (data = {}) {
			return await http.post(this.method, data);
		}
	},

	store: {
		method: `sys.sysDict.store`,
		name: "新建OR修改字典",
		post: async function (data = {}) {
			return await http.post(this.method, data);
		}
	},

	allByItem: {
		method: `sys.sysDict.allByItem`,
		name: "获取指定分类下全部字典",
		get: async function (data = {}) {
			return await http.post(this.method, data);
		}
	}
}
